debugstack = debug.traceback
strmatch = string.match
time = os.time
function geterrorhandler() return error end

local func,err
func,err = loadfile("../../LibStub/LibStub.lua")
if err then error(err) end
func()
func,err = loadfile("../LibSignal-1.0.lua")
if err then error(err) end
func()
func,err = loadfile("testbody.lua")
if err then error(err) end
func()

--pcall(require,"profiler")
if profiler then
	os.remove("prof.out~")
	profiler.start("prof.out~")
	print("Profiling")
end
LibStub:GetLibrary("LibSignal-1.0").UnitTest()
if profiler then profiler.stop() end
